<html>
<head><meta charset="utf-8"><title>cargo check doesn&#x27;t always work · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/cargo.20check.20doesn&#x27;t.20always.20work.html">cargo check doesn&#x27;t always work</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="220839072"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/cargo%20check%20doesn%27t%20always%20work/near/220839072" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/cargo.20check.20doesn&#x27;t.20always.20work.html#220839072">(Dec 24 2020 at 00:12)</a>:</h4>
<p>Apparently if cargo check contains lifetime problems, rust-analyzer (or rather the VS Code extension) gives up entirely and silently stops showing ANY error messages. Is this a known problem?</p>
<p><a href="/user_uploads/4715/SulAN5ctOGiekpqe50s97CpV/2020-12-24_01-11-25.gif">2020-12-24_01-11-25.gif</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/SulAN5ctOGiekpqe50s97CpV/2020-12-24_01-11-25.gif" title="2020-12-24_01-11-25.gif"><img src="/user_uploads/4715/SulAN5ctOGiekpqe50s97CpV/2020-12-24_01-11-25.gif"></a></div><p>Other people in Discord can confirm that this happens for them as well.</p>
<p>I'm assuming the json format or so changed a bit recently or the parser changed and it can't parse those message anymore.</p>



<a name="220839805"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/cargo%20check%20doesn%27t%20always%20work/near/220839805" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/cargo.20check.20doesn&#x27;t.20always.20work.html#220839805">(Dec 24 2020 at 00:29)</a>:</h4>
<p>I kinda bisected it to the release that this PR is in: <a href="https://github.com/rust-analyzer/rust-analyzer/pull/6734">https://github.com/rust-analyzer/rust-analyzer/pull/6734</a></p>
<p>So this likely broke the lifetime error parsing.</p>



<a name="220839880"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/cargo%20check%20doesn%27t%20always%20work/near/220839880" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/cargo.20check.20doesn&#x27;t.20always.20work.html#220839880">(Dec 24 2020 at 00:30)</a>:</h4>
<p>Does it still happen on the latest nightly? Because that should have a fix</p>



<a name="220839905"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/cargo%20check%20doesn%27t%20always%20work/near/220839905" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/cargo.20check.20doesn&#x27;t.20always.20work.html#220839905">(Dec 24 2020 at 00:31)</a>:</h4>
<p>Let me check.</p>



<a name="220839989"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/cargo%20check%20doesn%27t%20always%20work/near/220839989" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/cargo.20check.20doesn&#x27;t.20always.20work.html#220839989">(Dec 24 2020 at 00:33)</a>:</h4>
<p>Yeah seems like this is fixed in the nightly. Thank you :D</p>



<a name="220839992"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/cargo%20check%20doesn%27t%20always%20work/near/220839992" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/cargo.20check.20doesn&#x27;t.20always.20work.html#220839992">(Dec 24 2020 at 00:33)</a>:</h4>
<p>Nice!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>